<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/common/taglibs.jsp" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>转院管理</title>
		<%@ include file="/common/meta.jsp" %>
		<link href="${ctx}/css/yui.css" type="text/css" rel="stylesheet"/>
		<link href="${ctx}/css/style.css" type="text/css" rel="stylesheet"/>
		<script src="${ctx}/js/table.js" type="text/javascript"></script>
		<script src="${ctx}/js/clinic/referral.js" type="text/javascript"></script>
		<script language=JavaScript1.2 src="${ctx}/My97DatePicker/WdatePicker.js" type="text/javascript"></script>
		<style type="text/css">
		#customers
		  {
		  font-family:"Trebuchet MS", Arial, Helvetica, sans-serif;
		  border-collapse:collapse;
		  }
		
		#customers td, #customers th 
		  {
		  font-size:1em;
		  border:1px solid #98bf21;
		  padding:3px 7px 2px 7px;
		  }
		
		#customers th 
		  {
		  font-size:1.1em;
		  text-align:left;
		  padding-top:5px;
		  padding-bottom:4px;
		  text-align:center;
		  background-color:#A7C942;
		  color:#ffffff;
		  }
		
		#customers tr.alt td 
		  {
		  color:#000000;
		  background-color:#EAF2D3;
		  }
		</style>
</head>
<body>
<table width="700" class="noborder">
	<tr>
	<td align="left" ><div style="font-family:Arial;font-size:15px;font-weight:bold;font-style:normal">当前位置：校园诊所--转院管理</div> </td>
	</tr>
</table>
<form id="referralMainForm" action="referral.action" method="get">
	<input type="hidden" name="page.pageNo" id="pageNo" value="${page.pageNo}"/>
	<input type="hidden" name="page.orderBy" id="orderBy" value="${page.orderBy}"/>
	<input type="hidden" name="page.order" id="order" value="${page.order}"/>
	<input type="hidden" id="id" name="id" value="${id}"/>
	<div id="filter">
    <table width="700" class="noborder">
    	<tr>
	         <td width="70" align="left" valign="middle">员&nbsp;工&nbsp;号:</td>
	         <td width="250" align="left" valign="middle"><input type="text" name="idNumber" value="${idNumber}"  size="20" /></td>
	         <td width="210" align="right" valign="middle">患者姓名:</td>
	         <td width="170" align="right" valign="middle"><input type="text" name="name" value="${name}"  size="20" /></td>
	    </tr>
	    <tr>
	         <td width="70"  align="left"   valign="middle">班&nbsp;&nbsp;主&nbsp;任:</td>
	         <td width="250" align="left"  valign="middle"><input type="text" name="teacherBan" value="${teacherBan}" size="20" /></td>
	         <td width="210" align="right" valign="middle">转入医院:</td>
	         <td width="170" align="right" valign="middle"><input type="text" name="referralHospital" value="${referralHospital}" size="20"/></td>
	    </tr>
	    <tr>
	   		 <td width="70" align="left" valign="middle">转院日期:</td>
	         <td width="250" align="left" valign="middle"><input type="text"  onclick="WdatePicker({el:'referralDate'})" id="referralDate" readonly="readonly"  value="<s:date name='referralDate' format='yyyy-MM-dd'/>"  size="20" name="referralDate" size="20"/></td>
	         <td width="210" align="right" valign="middle"></td>
	         <td width="170" align="right" valign="middle"><input type="button" value="&nbsp;&nbsp;查&nbsp;询&nbsp;&nbsp;" onclick="searchReferral();"/></td>
	    </tr>
    </table>
    </div>
    <p></p>
    <p></p>
    <div id="content">
		<table width="690"  border="1" id="customers">
			<tr>
				<th>序号</th>
				<th>姓名</th>
				<th>工号</th>
				<th>转院日期</th>
				<th>转入医院</th>
				<th>转院原因</th>
				<th>操作</th>
			</tr>
			<s:iterator value="page.result">
					<tr class="alt" >
						<td>${id}</td>
						<td>${clinic.patient.name}</td>
						<td>${clinic.patient.idNumber}</td>
						<td>${referralDate}</td>
						<td>${referralHospital}&nbsp;</td>
						<td>${referralReason}&nbsp;</td>
						<td>
							<a href="referral!input.action?id=${id}">修改</a>&nbsp;
							<a href="javascript:deleteReferral(${id})">删除</a>
						</td>
					</tr>
				</s:iterator>
		</table>
	</div>
	<p></p>
	<table width="700" class="noborder">
		  <tr>
			    <td align="right" >第${page.pageNo}页, 共${page.totalPages}页
					<a href="javascript:referraljumpPage(1)">首页</a>
					<s:if test="page.hasPre"><a href="javascript:referraljumpPage(${page.prePage})">上一页</a></s:if>
					<s:if test="page.hasNext"><a href="javascript:referraljumpPage(${page.nextPage})">下一页</a></s:if>
					<a href="javascript:referraljumpPage(${page.totalPages})">末页</a>
				</td>
		  </tr>
	</table>
    
</form>
</body>
</html>